//
//  BusinessModel.h
//  WHSport
//
//  Created by ccjoy-jimneylee on 15/4/14.
//  Copyright (c) 2015年 jimneylee. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PlaceEntity.h"
#import "WarEntity.h"
typedef void(^SuccessedInfoBlock)(id info);
@interface BusinessModel : NSObject

@property(nonatomic, strong) PlaceEntity *placeEntity;
@property (nonatomic, strong) WarEntity *currentWar;

+ (BusinessModel *)sharedInstance;

- (void)getDataWithLatitude:(NSString *)latitude
                  longitude:(NSString *)longitude
                       page:(NSString *)page
               sportsItemId:(NSString *)sportsItemId
                     areaId:(NSString *)areaId
                       sort:(NSString *)sort
             sprotsHallName:(NSString *)sprotsHallName
               getPlaceList:(SuccessedInfoBlock)getPlaceList;

- (void)getMyOrderWithSatus:(NSString *)status
                       page:(NSString *)page
                      idNum:(NSString *)idNum
                 getMyOrder:(SuccessedInfoBlock)getMyOrder;

- (void)getMainListWithLatitude:(NSString *)latitude
                      longitude:(NSString *)longitude
                        getMain:(SuccessedInfoBlock)getMain;

- (void)getPhoto:(SuccessedInfoBlock)getPhoto;

- (void)getPlaceDateWithSprotsHallID:(NSString *)SprotsHallID
                            latitude:(NSString *)latitude
                           longitude:(NSString *)longitude
                        getPlaceData:(SuccessedInfoBlock)getPlaceData;

- (void)getplaceDataContWithsportsHallId:(NSString *)sportsHallId
                                    page:(NSString *)page
                                 getData:(SuccessedInfoBlock)getData;

- (void)getplaceDataHallWithsportsHallId:(NSString *)sportsHallId
                             getHallData:(SuccessedInfoBlock)getHallData;

- (void)getCompetListWithPage:(NSString *)page
                    getCompet:(SuccessedInfoBlock)getCompet;

- (void)getDatawithpage:(NSString *)page
                   data:(SuccessedInfoBlock)data;

- (void)getReservationWithSporthall:(NSString *)Sporthall
                      scheduledTime:(NSString *)scheduledTime
                          accountId:(NSString *)accountId
                         Sportevent:(NSString *)Sportevent
                         returnData:(SuccessedInfoBlock)returnData;

- (void)generateTheOrderWithYardId:(NSString *)yardId
                         accountId:(NSString *)accountId
                            status:(NSString *)status
                     sportsEventId:(NSString *)sportEventId
                     scheduledTime:(NSString *)scheduledTime
                        totalPrice:(NSString *)totalPrice
                         yardUnits:(NSArray *)yardUnits
                       resultBlcok:(SuccessedInfoBlock)block;

@end
